<template>
  <div class="jiemu">
    <div class="tanxin jiemu_top">
      <h2>{{ name }}</h2>
      <span>更多 &gt;</span>
    </div>
    <ul>
      <li class="tanxin" v-for="(item, index) in list" :key="index">
        <div class="tanxin">
          <img :src="item.program.blurCoverUrl" />
          <div class="cenc">
            <p class="ellipsis">{{ item.program.name }}</p>
            <span class="ellipsis">{{ item.program.radio.name }} </span>
          </div>
        </div>
        <div class="bott">{{ item.program.radio.category }}</div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  props: ["list", "name"],
  data() {
    return {};
  },
};
</script>
 
<style lang = "less" scoped>
@import "@/assets/base.less";
.jiemu {
  width: 426px;
  .jiemu_top {
    height: 42px;
    line-height: 42px;
    span {
      font-size: 12px;
      line-height: 42px;
      color: #666;
    }
  }
  ul {
    border: 1px solid #ccc;
    border-top: 3px solid @red;
    box-sizing: border-box;
    li {
      height: 60px;
      justify-content: flex-start;

      img {
        width: 40px;
        height: 40px;
        margin-left: 15px;
        margin-top: 10px;
      }
      .cenc {
        margin-top: 10px;
        margin-left: 10px;

        width: 254px;
        p {
          font-size: 14px;
        }
        span {
          font-size: 12px;
          color: #ccc;
        }
      }
      .bott {
        height: 18px;
        font-size: 12px;
        line-height: 18px;
        padding-left: 5px;
        padding-right: 5px;
        border: 1px solid #ccc;
        margin-top: 20px;
        margin-left: 10px;
      }
    }
  }
}
</style>